home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Development Tools & Languages / • Other Platforms / PCCTS / install.mpw next >
Encoding:
Text File  |  1994-09-14  |  3.2 KB  |  136 lines  |  [TEXT/MPS ]

  1. # Note: this script assumes that your MPW and PCCTS directories are
  2. #       of a standard configuration.
  3.  
  4. # To install PCCTS: 'Set Directory' to the directory containing this
  5. # file (should be the main PCCTS directory) and execute this script.
  6. #
  7. # By default, it will install ANTLR and DLG in your {MPW}Tools folder.
  8. #
  9. # It will ask you if you want to compile the demos in the 'lang' directory.
  10. #
  11. # ANTLR and DLG have Commando interfaces, check them out.
  12. #
  13. # Report MPW-Specific problems to Scott Haney at haney@random.llnl.gov.
  14.  
  15. Echo "# `Date -t` ----- Building PCCTS v1.23 for MPW."
  16.  
  17. # Make 'Macintosh' folders to hold object files.
  18.  
  19. Echo "# `Date -t` -----   Making Object File Folders."
  20. If (!`exists :dlg:Macintosh:`)
  21.   NewFolder :dlg:Macintosh:
  22. End
  23. If (!`exists :antlr:Macintosh:`)
  24.   NewFolder :antlr:Macintosh:
  25. End
  26. If (!`exists :support:set:Macintosh:`)
  27.   NewFolder :support:set:Macintosh:
  28. End
  29. If (!`exists :support:sym:Macintosh:`)
  30.   NewFolder :support:sym:Macintosh:
  31. End
  32. If (!`exists :lang:C:Macintosh:`)
  33.   NewFolder :lang:C:Macintosh:
  34. End
  35. If (!`exists :lang:Pascal:Macintosh:`)
  36.   NewFolder :lang:Pascal:Macintosh:
  37. End
  38.  
  39. Echo "# `Date -t` -----   Done."
  40. Echo "#"
  41.  
  42. # DLG build commands
  43.  
  44. Echo "# `Date -t` -----   Building DLG."
  45. Echo "# `Date -t` -----     Analyzing dependencies."
  46. Directory :dlg:
  47. Begin
  48.     If (!`exists dlg.make`)
  49.         Move -y makefile.mpw dlg.make
  50.     End
  51.     If (!`exists dlg.r`)
  52.         Move -y dlg.mpw.r dlg.r
  53.     End
  54.     Echo "Set Echo 1"
  55.     Make Install -f dlg.make
  56. End > dlg.makeout
  57. Echo "# `Date -t` -----     Executing build commands."
  58. dlg.makeout
  59. Delete dlg.makeout
  60. Echo "# `Date -t` -----   Done."
  61. Echo "#"
  62. Directory ::
  63.  
  64. # ANTLR build commands
  65.  
  66. Echo "# `Date -t` -----   Building ANTLR."
  67. Echo "# `Date -t` -----     Analyzing dependencies."
  68. Directory :antlr:
  69. Begin
  70.     If (!`exists antlr.make`)
  71.         Move -y makefile.mpw antlr.make
  72.     End
  73.     If (!`exists antlr.r`)
  74.         Move -y antlr.mpw.r antlr.r
  75.     End
  76.     Echo "Set Echo 1"
  77.     Make Install -f antlr.make
  78. End > antlr.makeout
  79. Echo "# `Date -t` -----     Executing build commands."
  80. antlr.makeout
  81. Delete antlr.makeout
  82. Echo "# `Date -t` -----   Done."
  83. Echo "#"
  84. Directory ::
  85.  
  86. # Ask If they want the demos built.
  87.  
  88. Set Exit 0
  89. Confirm -t  "Do you want me to build the demos in the ∂"lang∂" folder?"
  90. If ({Status} == 0)
  91.  
  92.   # PROTO build commands
  93.  
  94.   Echo "# `Date -t` -----   Building PROTO."
  95.   Echo "# `Date -t` -----     Analyzing dependencies."
  96.   Directory :lang:C:
  97.   Begin
  98.     If (!`exists proto.make`)
  99.         Move -y makefile.mpw proto.make
  100.     End
  101.       Echo "Set Echo 1"
  102.       Make proto -f proto.make
  103.   End > proto.makeout
  104.   Echo "# `Date -t` -----     Executing build commands."
  105.   proto.makeout
  106.   Delete proto.makeout
  107.   Echo "# `Date -t` -----   Done."
  108.   Echo "#"
  109.   Directory :::
  110.  
  111.   # PASCAL build commands
  112.  
  113.   Echo "# `Date -t` -----   Building PASCAL."
  114.   Echo "# `Date -t` -----     Analyzing dependencies."
  115.   Directory :lang:Pascal:
  116.   Begin
  117.     If (!`exists pascal.make`)
  118.         Move -y makefile.mpw pascal.make
  119.     End
  120.       Echo "Set Echo 1"
  121.       Make pascal -f pascal.make
  122.   End > pascal.makeout
  123.   Echo "# `Date -t` -----     Executing build commands."
  124.   pascal.makeout
  125.   Delete pascal.makeout
  126.   Echo "# `Date -t` -----   Done."
  127.   Echo "#"
  128.   Directory :::
  129.  
  130. End
  131. Set Exit 1
  132.  
  133. # Done
  134.  
  135. Echo "# `Date -t` ----- Done Building PCCTS v1.23. Have a nice day."
  136.